package com.example.demo2.controller;

import com.example.demo2.util.TransferPage;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.stage.Stage;
/**
 * @description This class is for user interaction between users and Identity choose page
 * @version 2.0
 */
public class IdentityController {
    @FXML
    private Button PassengerButton;

    public void passengerController(ActionEvent event) {
        Stage primaryStage = (Stage) PassengerButton.getScene().getWindow();
        primaryStage.hide();
        TransferPage.transfer("passenger", "Passenger Login",400,600);

    }


}
